package com.wmm.fast.main.shop2Decorator;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 写写画画 装饰模式
 * @Auther: Token360
 * @Date: 2018/9/6 10:56
 * @Description:
 */
public class Decorator extends Component {

    private Logger log = LoggerFactory.getLogger(Decorator.class);

    private Component component;

    public void operation() {
        if(component != null) {
            component.operation();
        }
    }

    public Component getComponent() {
        return component;
    }

    public void setComponent(Component component) {
        this.component = component;
    }
}
